Skip to content

Adds Redis Memory extension class - #6743

Merged
Eric Zhu (ekzhu) merged 20 commits into
microsoft:mainfrom
justin-cechmanek:feature/add-redis-memory
Jul 26, 2025
Merged

Adds Redis Memory extension class#6743
Eric Zhu (ekzhu) merged 20 commits into
microsoft:mainfrom
justin-cechmanek:feature/add-redis-memory

Conversation

@justin-cechmanek

Copy link
Copy Markdown
Contributor

Why are these changes needed?

This PR adds the RedisMemory class to allow for developers to use Redis vector search for agent memory. Redis vector db offers a persistent store and the ability to semantically search for relevant memories.

Related issue number

None

Checks

@ekzhu Eric Zhu (ekzhu) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. A couple of things:

  1. Let's use the module path autogen_ext.memory.redis for the new module.
  2. Add API doc to RedisMemory with examples of usage. Make sure the code blocks are checked by pyright, the CI checks the formatting and types of API docs. See python/README.md for information on checks. Many users use the API Reference directly.
  3. In the usage guide notebook, can you simplify the setup instructions for the redis example. The example should just refer to the API doc using reference:
{py:class}`~autogen_ext.memory.redisvl.RedisMemory`

@justin-cechmanek

Copy link
Copy Markdown
Contributor Author

Eric Zhu (@ekzhu) thanks for the review, it's really appreciated.
Are there any other things you would like me to address?

@justin-cechmanek

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree company="Redis"

Comment thread python/packages/autogen-ext/tests/memory/test_redis_memory.py Outdated
Comment thread python/packages/autogen-ext/src/autogen_ext/memory/redis/_redis_memory.py Outdated
Comment thread python/docs/src/user-guide/agentchat-user-guide/memory.ipynb Outdated
Comment thread python/docs/src/user-guide/agentchat-user-guide/memory.ipynb Outdated
@justin-cechmanek

Copy link
Copy Markdown
Contributor Author

Tyler Hutcherson (@tylerhutcherson) if you want to follow along with this PR.

@ekzhu

Eric Zhu (ekzhu) commented Jul 24, 2025

Copy link
Copy Markdown
Contributor

Looks like there are a lot of test failures.

@tylerhutcherson

Tyler Hutcherson (tylerhutcherson) commented Jul 24, 2025

Copy link
Copy Markdown

Looks like there are a lot of test failures.

Hey Eric Zhu (@ekzhu) stepping in for Justin Cechmanek (@justin-cechmanek) to help get us over the finish line here. We are looking into the failures. Looks like part of the issue was a uv.lock update.

Can you try rerunning them again? We will dig to see what parts of our code and tests touch these suites.

@codecov

codecov Bot commented Jul 26, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 78.12500% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.91%. Comparing base (e26bb1c) to head (e475064).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...-ext/src/autogen_ext/memory/redis/_redis_memory.py 77.41% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6743      +/-   ##
==========================================
- Coverage   79.92%   79.91%   -0.01%     
==========================================
  Files         233      235       +2     
  Lines       18108    18172      +64     
==========================================
+ Hits        14473    14523      +50     
- Misses       3635     3649      +14     
Flag Coverage Δ
unittests 79.91% <78.12%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ekzhu
Eric Zhu (ekzhu) merged commit 3b139c6 into microsoft:main Jul 26, 2025
69 of 70 checks passed
@justin-cechmanek
Justin Cechmanek (justin-cechmanek) deleted the feature/add-redis-memory branch July 28, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants